#ifndef EREMOTEPROTOCOL_GLOBAL_H
#define EREMOTEPROTOCOL_GLOBAL_H

#include <QtCore/qglobal.h>

#if defined(EREMOTEPROTOCOL_LIBRARY)
#  define EREMOTEPROTOCOLSHARED_EXPORT Q_DECL_EXPORT
#else
#  define EREMOTEPROTOCOLSHARED_EXPORT Q_DECL_IMPORT
#endif

#define PROTECT_VERSION_STRING "DMK 001.001\n"
#define PROTECT_VERSION_DATA_SIZE 12

enum Client2ServerMessageType : uint16_t
{
    C2S_KeyEvent,
    C2S_MouseEvent,
    C2S_CloseWindowEvent,
    C2S_ResizeWindowEvent,
    C2S_WheelEvent,

// 图像采集控制
    C2S_StartCap=40,
    C2S_PauseCap,

    C2S_UpdateCutTextEvent=100
};

enum Server2ClientMessageType : uint16_t
{
    S2C_CreateWindowEvent,
    S2C_CloseWindowEvent,
    S2C_ResizeWindowEvent,
    S2C_UpdateWindowFramebufferEvent,

    S2C_UpdateCutTextEvent=100
};

enum CodecType
{
    Codec_H264,
    Codec_H265
};

#endif // EREMOTEPROTOCOL_GLOBAL_H
